<?php 

abstract class Engine_Db_Adapter {
	
	protected $dbAdapter = null;

    abstract protected function init();

    public function __construct() {
        $this->dbAdapter = Application_Bootstrap::getDbAdapter();
        $this->init();
    }

    protected function setQuery($query) {
    	$this->query = $query;
    }

    public function getQuery() {
    	return $this->query;
    }

    public function getRowset() {
    	$db = $this->dbAdapter;
    	return $db->select($this->query);
    }

}